package interview.algorithms.offer.singleton;
// 懒汉
public class Second {
    private static Second obj;

    private Second() {
    }

    public static Second getObj() {
        try {
            if (obj == null) {

            Thread.sleep(3000);
            obj = new Second();
            }
            } catch (InterruptedException e) {
                e.printStackTrace();
            }


        return obj;
    }
}
